﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UtilZ.Dotnet.Ex.Communication.Base;

namespace UtilZ.Dotnet.Ex.Communication.Net.MQBase
{
    /// <summary>
    /// MQ消息输出参数
    /// </summary>
    public class MQMessageOutputArgs : EventArgs
    {
        /// <summary>
        /// 订阅信息
        /// </summary>
        public IMQSubscribInfo SubscribInfo { get; private set; }

        /// <summary>
        /// 收到的消息
        /// </summary>
        public IMQMessage MQMessage { get; private set; }

       


        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="subscribInfo">订阅信息</param>
        /// <param name="mqMessage">收到消息的消息队列</param>
        public MQMessageOutputArgs(IMQSubscribInfo subscribInfo, IMQMessage mqMessage)
        {
            this.SubscribInfo = subscribInfo;
            this.MQMessage = mqMessage;
        }
    }
}
